import axios from '@/utils/request';
export class passengerApi {
  // 保存
  static savePassenger(data: passengerParams): Promise<any> {
    return axios.post('/api/member/passenger/save', data);
  }
  // 查询
  static queryPassenger(params: memberQueryParams): Promise<any> {
    return axios.get('/api/member/passenger/list', { params });
  }
  // 查询乘客详情
  static queryPassengerDetail(id: string): Promise<any> {
    return axios.get('/api/member/passenger/detail', { params: { id } });
  }
  // 删除
  static deletePassenger(id: string): Promise<any> {
    return axios.post('/api/member/passenger/delete', { id });
  }
  // 获取所有乘客
  static getPassengerAllList(): Promise<any> {
    return axios.get('/api/member/passenger/query-mine');
  }
}
